Access government data programmatically through our simple REST API
Start exploring our API with these simple endpoints:
const response = await fetch('https://data.cityofnewyork.us/resource/erm2-nwe9.json'); const data = await response.json(); console.log(data);
Use our official SDK to simplify API interactions:
npm install soda-js
// Initialize the SDK const soda = require('soda-js'); const consumer = new soda.Consumer('data.cityofnewyork.us'); // Make a query consumer.query() .withDataset('erm2-nwe9') .limit(5) .where({ agency: 'NYPD' }) .execute() .then(results => console.log(results));View SDK Docs